#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int m = 0;
	scanf("%d", &m);
	int n = m * m * m;
	int i = 0;
	for (i = 1; i < n; i+=2)
	{
		int j = i;
		int c = n;
		int b = 0;
		for ( b=0 ; b < m; b++)
		{
			c -= j;
			j += 2;
		}
		if (c == 0)
		{
			for ( b=0 ; b < m; b++)
			{
				printf("%d ", i);
				i += 2;
			}
			break;
		}
	}
	return 0;
}